package com.yami.shop.cp.comment.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yami.shop.cp.comment.model.CollaborativePurchase;
import com.yami.shop.cp.comment.model.CollaborativePurchaseAddr;
import com.yami.shop.cp.comment.model.UserSubmitPerson;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 协助采购和提报人合并信息
 */
@Data
public class CollaborativePurchaseMergerDto implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 协同采购id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 创建用户id
     */
    private String userId;

    /**
     * 协同采购清单名称
     */
    private String name;

    /**
     * 协同采购类型id
     */
    private String collaborativePurchaseTypeId;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    /**
     * 简介
     */
    private String synopsis;

    /**
     * 状态 0 待发送 1 收集中 2 已完成 3 异常
     */
    private String status;

    /**
     * 最大金额
     */
    private BigDecimal maxMoney;

    /**
     * 产品价格是否可见0可见1不可见
     */
    private String prodMoneyStatus;

    /**
     * 省id
     */
    private Long provinceId;

    /**
     * 省
     */
    private String province;

    /**
     * 市id
     */
    private Long cityId;

    /**
     * 市
     */
    private String city;

    /**
     * 区id
     */
    private Long areaId;

    /**
     * 区
     */
    private String area;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 提报人id集合
     */
    private List<UserSubmitPerson> submitPersons;
}
